$(function(){
	var query_id = localStorage.getItem("query_id");
	console.log("store_id:" + query_id);
	var urlPath = "http://yx.fxtourong.com/V1/Circle/memberJoinEncryptCircle" + "?store_id=" + query_id;
	console.log("url:" + urlPath);
	$("#issue").click(function(){
		var pwd = $("#pwd").val();
		console.log("pwd:" + pwd);
		$.ajax({
			type: "POST",
			url: urlPath,
			data: {
				token : localStorage.getItem("token"),
				pwd: pwd
			},
			dataType: "json",
			success: function(data) {
				console.log(data);
				var code = data.code;
				console.log(code);
				if(code == "1") {
					location.href = "query_detail.html";
				} else {
					alert(data.message + "");
				}
			},
			error: function(e){
				alert("服务请求异常！")
			}
		});
	});
	
});
